package top.jidanmian.iot.mqtt.persistence;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface MqttMessageRepository extends JpaRepository<MqttReceivedMessage, Long> {

    MqttReceivedMessage findFirstByTopicIgnoreCaseOrderByIdDesc(String topic);
}
